package com.longge;

public class FindString {

    public int findString(String[] words, String s) {

        for (int i = 0; i < words.length; i++) {
            String word = words[i];
            if (word.equals(s))
                return i;
        }
        return -1;
    }
}
